<?php
	require_once('../paths.inc');
	require_once('../' . DB_PATH . 'db.inc');	
	require_once('admin_utils.php');
	session_start();
	
	$db = db_connect();
	
	Utils::write_header();
	$opt = $_GET['opt'];
	
	Utils::write_menu_admin();
	
	switch ($opt) {
		case "basic_stats": {
			$objBasicStats = Stats::getBasicStats($db);
			break;
		}
		
	}
	
	if (isset($opt))
		require_once('./views/view_' . $opt . '.php');

	Utils::write_footer();
?>	